<template>
  <div class="nav">
    <div class="item">
      <van-icon name="cart-o" size="32" />
      <div class="title">小米上新</div>
    </div>
    <div class="item">
      <van-icon name="fire-o" size="32" />
      <div class="title">小米发布</div>
    </div>
    <div class="item">
      <van-icon name="goods-collect-o" size="32" />
      <div class="title">智能穿戴</div>
    </div>
    <div class="item">
      <van-icon name="bag-o" size="32" />
      <div class="title">电脑平板</div>
    </div>
  </div>
</template>

<script setup>

</script>

<style scoped>
.nav {
  display: flex;
  padding: 0 10px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 5px;
}
.item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  gap: 5px;
  box-sizing: border-box;
}
.img {
  width: 64px;
  height: 64px;
}
.title {
  font-size: 14px;
}
</style>